﻿namespace iFinance.IDAL
{
    using iFinance.Entity;

    /// <summary>
    /// 用户数据库操作接口
    /// </summary>
    public interface IUserDAO
    {
        /// <summary>
        /// 根据用户登录ID判断用户是否 存在
        /// </summary>
        /// <param name="userID">用户登录ID</param>
        /// <returns>是否存在</returns>
        bool IsUserExist(string userID);

        /// <summary>
        ///添加用户
        /// </summary>
        /// <param name="user">用户实体</param>
        /// <returns>添加是否成功</returns>
        bool AddUser(User user);

        /// <summary>
        /// 根据用户名获取用户
        /// </summary>
        /// <param name="userID">用户名</param>
        /// <returns>用户信息</returns>
        User QueryUserByID(string userID);
    }
}
